package com.sxjh.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxjh.entity.Task;
import com.sxjh.entity.param.ReportsDetailParam;
import com.sxjh.entity.param.ReportsListParam;
import com.sxjh.entity.result.PlanedTaskListResult;
import com.sxjh.entity.result.TaskListResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 任务  服务类
 * </p>
 *
 * @author zixin
 * @since 2021-06-06
 */
public interface TaskService extends IService<Task> {

    IPage<TaskListResult> list(IPage iPage, TaskListResult param);

    TaskListResult list(Integer vehId);

    List<PlanedTaskListResult> taskList(String icNumber, Integer status);

    IPage<ReportsListParam> reportList(IPage iPage, ReportsListParam param);

    IPage<ReportsDetailParam> reportDetail(IPage iPage, ReportsDetailParam param);

    void savePhpFile(int id, MultipartFile file1, MultipartFile file2, boolean isFirst);

    void updateTaskById(Task task);

}
